package com.galaxy.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.galaxy.common.mybatis.core.mapper.BaseMapperPlus;
import com.galaxy.device.domain.DeviceBase;
import com.galaxy.device.domain.bo.DeviceBaseBo;
import com.galaxy.device.domain.vo.DeviceBaseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 设备基础信息Mapper接口
 */
@Mapper
public interface DeviceBaseMapper extends BaseMapperPlus<DeviceBase, DeviceBaseVo> {

    DeviceBase selectDeviceBaseWithDetails(@Param("id") Long id);

    DeviceBaseVo selectDeviceBaseWithDetailsVo(@Param("id") Long id);

    DeviceBaseVo selectDeviceBaseWithDetailsVoByNo(@Param("deviceNo") String deviceNo);

    IPage<DeviceBaseVo> selectVoListPage(@Param("page") IPage<DeviceBaseVo> page, @Param("bo") DeviceBaseBo bo);

    List<DeviceBaseVo> selectVoList(@Param("bo") DeviceBaseBo bo);
}
